﻿<div>
    @if (Request.IsAuthenticated)
    {
        <div class="btn-group pull-right">
            <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                <i class="icon-user"></i>@User.Identity.Name
                <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
                <li>@Html.ActionLink("Min profil", "MyProfile", "Admin", null)</li>
                <li>@Html.ActionLink("Telefonlista", "PhoneList", "Admin", null)</li>
                <li>@Html.ActionLink("Administrera", "Index", "Admin", null, null)</li>
                <li class="divider"></li>
                <li>@Html.ActionLink("Sign Out", "Logout", "User")</li>
            </ul>
        </div>
    }
    else
    {
        <div class="btn">
            @Html.ActionLink("Logga in", "Login", "User")
        </div>
    }
</div>
